﻿using System;

namespace Data.OleDb
{
    public static class Database
    {
        // todo: change this to get the connection information from a config file

        public static string AccessProvider = "Provider=Microsoft.ACE.OLEDB.12.0;";
        public static string AccessSecurity = "Persist Security Info=False;";
        public static string Password = "JET OLEDB:Database Password=MyPassword;"; // add your password if desired

        public static string TimeSplicerProduction = @"Data Source=C:\Users\rudy__000\Documents\Data\TimeSplicer_Development.accdb;"; // use your file path
        public static string TimeSplicerDevelopment = @"";



        // will probably database strings to config file
        public static string GetConnectionString()
        {
            //if (db == Access_Database.TimeSplicer)
            //{
                return String.Format("{0}{1}{2}", AccessProvider, TimeSplicerProduction, AccessSecurity);
            //}

            //return String.Empty;
        }
    }
}
